package com.imti.retrofitweatherdemo.net.weather;

import com.imti.retrofitweatherdemo.logic.WeatherCityModel;
import com.imti.retrofitweatherdemo.logic.WeatherResult;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import rx.Observable;

public interface WeatherRequest
{

    //BASE_URL //http://apis.juhe.cn/
    @GET("/simpleWeather/cityList?")
//    Call<WeatherCityModel> queryCityList(@Query("key") String key);
    //Observable数据源（变化源，被观察者）
    Observable<WeatherCityModel> queryCityList(@Query("key") String key);

    @GET("/simpleWeather/query?")
    Observable<WeatherResult> getCityWeatherDetail(@Query("key") String key,
        @Query("city") String cityId);

}
